package com.zyg.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zyg.pojo.User;
import java.util.List;
@Mapper
public interface UserMapper {
    //多参数入参加注解

    List<User> findAll(@Param("user") User user,@Param("offset")  int offset,@Param("pageSize") int pageSize);

    int addUser(User user);

    User findById(int id);

    int UpdateUser(User user);

    int DeleteUserById(int id);

    int count(User user);

    User login(User user);

    int findUserByName(String name);

    int registUser(User user);
}
